
#列出爱好---------1------------------
'''
games = ["computer","jogging"]
foods=["apple","watermelon"]

favor = [foods, games]
print(favor[0][1])
'''
##--计算总数---------2-----------------------
'''
battler = 25
buildings =3
pipes =  2
braverage = 40

building=3
ninjaPerBuilding=25 #忍者
turnnelPerBuilding=2 #地道
samuari=40 #武士

ninja_=ninjaPerBuilding*building
samuari_=building*turnnelPerBuilding*samuari
print("ninja:%d samuari:%d" %( ninja_,samuari_))
'''
##------输入姓名-------------3-----------------
'''
lastName = input("请输入姓:")
firstName = input("请输入名:")
print("您的姓名是：%s%s" %(lastName,firstName))
'''
##---------画方形---4-----------
'''
import turtle
t = turtle.Pen()
##for i in range(0,4):
##    t.forward(100)
##    t.right(90)
##------画三角------
##for i in range(0,3):
##    t.forward(100)
##    t.right(120)
#------画没角的方形--------
for i in range(4):
    t.up()
    t.forward(10)
    t.down()
    t.forward(100)
    t.up()
    t.forward(10)
    t.right(90)
'''
#-----你富有么？--5-----------
'''
    if ():
       print()
else:  没有对齐
    print()
      print() 没有对齐
'''
#---------查看星星的数量---6----------
'''
twinkles=int(input("星星的数量是："))
if(twinkles <100):
    print("数量太少")
elif(twinles>500):
    print("数量太多")
'''
#----------7--------------
'''
for x in range(0,20):
    print("Hello %s" %(x))
    if(x<9):
        break
'''
#------根据输入奇数或者偶数年龄-----8-------------
'''
age =  int(input("请输入你的年龄："))
if(age%2==0):
    i=0
else:
    i=1

while(i<age+1):
     print(i)
     i=i+2
'''
#---------打印列表--------------------9---------------
'''
a=["a1","a2","a3","a4","a5"]
for i in a:
    print(i)
'''
#---计算月球上的体重----10-----------
'''
##weight =  100
import sys

coefficient = 0.165
    
print("请输入你现在的体重")
weight = eval(sys.stdin.readline())
print("每年增长多少")
increment= eval(sys.stdin.readline())
#increment = 1
year = 15
def moon_weight(weight, increment,year):
    for i in range(1,year+1):
        weight = weight + increment
        weightAtMoon =  weight*coefficient
        print("第%d年在月球上的体重为:%f" %(i,weightAtMoon))

moon_weight(weight,increment,year)
'''
#-----------------移动三角形----11--------------
'''
from tkinter import*
import time

tk = Tk()
canvas = Canvas(tk,width=400, height=200)
canvas.pack()

p1 = canvas.create_polygon(10,10,10,60,50,35)
for x in  range(0,70):
    canvas.move(p1,5,0)
    tk.update()
    time.sleep(0.1)

for y in range(0,28):
    canvas.move(p1,0,5)
    tk.update()
    time.sleep(0.1)

for y in range(0,70):
    canvas.move(p1,-5,0)
    tk.update()
    time.sleep(0.1)

for x in  range(0,28):
    canvas.move(p1,0,-5)
    tk.update()
    time.sleep(0.1)
'''
